if __name__ == '__main__':

    # 统计字符串中指定字符了出现的次数
    s='HelloPython,HelloJava,hellophp'

    word = str(input("请输入你要统计的字符："))
    # print(f'{word}在{s}中一共出现了{s.upper().count(word)}')
    print('{0}在{1}中一共出现了{2}'.format(word,s,s.upper().count(word)))